/**
 * Created by Administrator on 2018/10/15 0015.
 */
function expand(el){
    childobj = document.getElementById("child"+el);
    if (childobj.style.display == 'none'){
        $("a[id=child"+el+"]").attr("style","display:block");
    }
    else{
        $("a[id=child"+el+"]").attr("style","display:none");
    }
    return;
}

function short_content(str){
    var dd = str.replace(/<\/?.+?>/g,"");
    var dds = dd.replace(/ /g,"");//dds为得到后的内容

    return dds.substr(1,100);
}

function no_page() {
    layui.use(['layer'], function() {
        layer.msg('此功能暂未开通', {icon: 0, time: 3000});
    })
}
